<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>i2c: C:/Users/Jon/Downloads/OOP/db-control/dbContact.php Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">i2c
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">C:/Users/Jon/Downloads/OOP/db-control/dbContact.php</div>  </div>
</div>
<div class="contents">
<a href="db_contact_8php.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00002"></a>00002 
<a name="l00018"></a><a class="code" href="classdb_contact.html">00018</a> <span class="keyword">class </span><a class="code" href="classdb_contact.html">dbContact</a> {
<a name="l00019"></a>00019 
<a name="l00020"></a><a class="code" href="classdb_contact.html#aea6c4d653e217f31256ded5783ed58f4">00020</a>    <span class="keyword">static</span> <span class="keyword">function</span> <a class="code" href="classdb_contact.html#aea6c4d653e217f31256ded5783ed58f4">createTable</a>() {
<a name="l00021"></a>00021       <span class="comment">//create table contact</span>
<a name="l00022"></a>00022       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = <span class="stringliteral">&quot;</span>
<a name="l00023"></a>00023 <span class="stringliteral">            create table contact(</span>
<a name="l00024"></a>00024 <span class="stringliteral">                contactID               int             NOT NULL AUTO_INCREMENT,</span>
<a name="l00025"></a>00025 <span class="stringliteral">                organizationID          int             NULL,</span>
<a name="l00026"></a>00026 <span class="stringliteral">                fname                   varchar(20)     NOT NULL,</span>
<a name="l00027"></a>00027 <span class="stringliteral">                lname                   varchar(20)     NOT NULL,</span>
<a name="l00028"></a>00028 <span class="stringliteral">                email                   varchar(50)     NULL,</span>
<a name="l00029"></a>00029 <span class="stringliteral">                phone                   varchar(13)     NULL,</span>
<a name="l00030"></a>00030 <span class="stringliteral">                ext                     varchar(4)      NULL,</span>
<a name="l00031"></a>00031 <span class="stringliteral">                fax                     varchar(13)     NULL,</span>
<a name="l00032"></a>00032 <span class="stringliteral">                constraint PK_Contact PRIMARY KEY (contactID),</span>
<a name="l00033"></a>00033 <span class="stringliteral">                constraint FK_Contact_Organization FOREIGN KEY (organizationID)</span>
<a name="l00034"></a>00034 <span class="stringliteral">                    references organization (organizationID)</span>
<a name="l00035"></a>00035 <span class="stringliteral">                );</span>
<a name="l00036"></a>00036 <span class="stringliteral">    &quot;</span>;
<a name="l00037"></a>00037       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00038"></a>00038       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00039"></a>00039           
<a name="l00040"></a>00040           <span class="comment">//If result is false, display error</span>
<a name="l00041"></a>00041       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00042"></a>00042          echo mysql_error();
<a name="l00043"></a>00043          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00044"></a>00044       }
<a name="l00045"></a>00045       mysql_close();
<a name="l00046"></a>00046       <span class="comment">//Previous query was successful.</span>
<a name="l00047"></a>00047       <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00048"></a>00048    }
<a name="l00049"></a>00049 
<a name="l00054"></a><a class="code" href="classdb_contact.html#a2273cfbddc0051696284819bfcfeb317">00054</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#a2273cfbddc0051696284819bfcfeb317">getAllContacts</a>() {
<a name="l00055"></a>00055       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = <span class="stringliteral">&quot;SELECT * FROM contact&quot;</span>;
<a name="l00056"></a>00056       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00057"></a>00057       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00058"></a>00058       mysql_close();
<a name="l00059"></a>00059           
<a name="l00060"></a>00060           <span class="comment">//If result is false, display error</span>
<a name="l00061"></a>00061       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00062"></a>00062          echo mysql_error();
<a name="l00063"></a>00063          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00064"></a>00064       }
<a name="l00065"></a>00065 
<a name="l00066"></a>00066       <span class="comment">//Query was successful.</span>
<a name="l00067"></a>00067       <span class="keywordflow">return</span> <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>;
<a name="l00068"></a>00068    }
<a name="l00069"></a>00069 
<a name="l00075"></a><a class="code" href="classdb_contact.html#ad42a54dce36cdfe389c7e19ec529e621">00075</a>    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">function</span> <a class="code" href="classdb_contact.html#ad42a54dce36cdfe389c7e19ec529e621">getAllName</a>($orgID) {
<a name="l00076"></a>00076       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = <span class="stringliteral">&quot;SELECT contactID,fname,lname FROM contact WHERE organizationID=&#39;$orgID&#39; ORDER BY fname ASC&quot;</span>;
<a name="l00077"></a>00077       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00078"></a>00078       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00079"></a>00079       mysql_close();
<a name="l00080"></a>00080 
<a name="l00081"></a>00081           <span class="comment">//If result is false, display error</span>
<a name="l00082"></a>00082       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00083"></a>00083          $output = sprintf(<span class="stringliteral">&quot;%s&quot;</span>, mysql_error());
<a name="l00084"></a>00084          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00085"></a>00085       } <span class="keywordflow">else</span> {
<a name="l00086"></a>00086          <span class="keywordflow">return</span> <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>;
<a name="l00087"></a>00087       }
<a name="l00088"></a>00088    }
<a name="l00089"></a>00089 
<a name="l00095"></a><a class="code" href="classdb_contact.html#a95bac470dae6d9bdcfa717c5fc11104e">00095</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#a95bac470dae6d9bdcfa717c5fc11104e">getContactID</a>($c) {
<a name="l00096"></a>00096 
<a name="l00097"></a>00097       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<span class="stringliteral">&quot;SELECT contactID from contact WHERE fname=&#39;{$c-&gt;getFname()}&#39; AND lname=&#39;{$c-&gt;getLname()}&#39;&quot;</span>);
<a name="l00098"></a>00098       <span class="keywordflow">if</span> (!<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>) {
<a name="l00099"></a>00099          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00100"></a>00100       } <span class="keywordflow">else</span> {
<a name="l00101"></a>00101          $row = mysql_fetch_row(<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>);
<a name="l00102"></a>00102          <span class="keywordflow">return</span> $row[<span class="charliteral">&#39;0&#39;</span>];
<a name="l00103"></a>00103       }
<a name="l00104"></a>00104    }
<a name="l00105"></a>00105 
<a name="l00111"></a><a class="code" href="classdb_contact.html#a0926ddf94d472e55e8b11bb48aecaf96">00111</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#a0926ddf94d472e55e8b11bb48aecaf96">getOrganizationID</a>($c) {
<a name="l00112"></a>00112       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = <span class="stringliteral">&quot;SELECT organizationID FROM contact</span>
<a name="l00113"></a>00113 <span class="stringliteral">        WHERE contactID=&#39;$c&#39;&quot;</span>;
<a name="l00114"></a>00114       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00115"></a>00115       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00116"></a>00116       mysql_close();
<a name="l00117"></a>00117           
<a name="l00118"></a>00118           <span class="comment">//If result is false, display error</span>
<a name="l00119"></a>00119       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00120"></a>00120          echo mysql_error();
<a name="l00121"></a>00121          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00122"></a>00122       }
<a name="l00123"></a>00123       <span class="comment">//Query was successful.</span>
<a name="l00124"></a>00124       <span class="keywordflow">return</span> <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>;
<a name="l00125"></a>00125    }
<a name="l00126"></a>00126 
<a name="l00132"></a><a class="code" href="classdb_contact.html#a9b36fb56afaff85d63d817e2e4354dff">00132</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#a9b36fb56afaff85d63d817e2e4354dff">getFname</a>($c) {
<a name="l00133"></a>00133       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = <span class="stringliteral">&quot;SELECT fname FROM contact</span>
<a name="l00134"></a>00134 <span class="stringliteral">        WHERE contactID=&#39;$c&#39;&quot;</span>;
<a name="l00135"></a>00135       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00136"></a>00136       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00137"></a>00137       mysql_close();
<a name="l00138"></a>00138           
<a name="l00139"></a>00139           <span class="comment">//If result is false, display error</span>
<a name="l00140"></a>00140       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00141"></a>00141          echo mysql_error();
<a name="l00142"></a>00142          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00143"></a>00143       }
<a name="l00144"></a>00144       <span class="comment">//Query was successful.</span>
<a name="l00145"></a>00145       <span class="keywordflow">return</span> <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>;
<a name="l00146"></a>00146    }
<a name="l00147"></a>00147 
<a name="l00153"></a><a class="code" href="classdb_contact.html#a92c069e6002f92ebfa2c121e984b120b">00153</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#a92c069e6002f92ebfa2c121e984b120b">getLname</a>($c) {
<a name="l00154"></a>00154       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = <span class="stringliteral">&quot;SELECT Lname FROM contact</span>
<a name="l00155"></a>00155 <span class="stringliteral">        WHERE contactID=&#39;$c&#39;&quot;</span>;
<a name="l00156"></a>00156       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00157"></a>00157       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00158"></a>00158       mysql_close();
<a name="l00159"></a>00159           
<a name="l00160"></a>00160           <span class="comment">//If result is false, display error</span>
<a name="l00161"></a>00161       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00162"></a>00162          echo mysql_error();
<a name="l00163"></a>00163          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00164"></a>00164       }
<a name="l00165"></a>00165       <span class="comment">//Query was successful.</span>
<a name="l00166"></a>00166       <span class="keywordflow">return</span> <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>;
<a name="l00167"></a>00167    }
<a name="l00168"></a>00168 
<a name="l00173"></a><a class="code" href="classdb_contact.html#a894d98d3435563e1510534f255faf20a">00173</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#a894d98d3435563e1510534f255faf20a">getEmail</a>($c) {
<a name="l00174"></a>00174       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = <span class="stringliteral">&quot;SELECT email FROM contact</span>
<a name="l00175"></a>00175 <span class="stringliteral">        WHERE contactID=&#39;$c&#39;&quot;</span>;
<a name="l00176"></a>00176       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00177"></a>00177       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00178"></a>00178       mysql_close();
<a name="l00179"></a>00179           
<a name="l00180"></a>00180           <span class="comment">//If result is false, display error</span>
<a name="l00181"></a>00181       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00182"></a>00182          echo mysql_error();
<a name="l00183"></a>00183          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00184"></a>00184       }
<a name="l00185"></a>00185       <span class="comment">//Query was successful.</span>
<a name="l00186"></a>00186       <span class="keywordflow">return</span> <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>;
<a name="l00187"></a>00187    }
<a name="l00188"></a>00188 
<a name="l00194"></a><a class="code" href="classdb_contact.html#ac6710eab95964004b469695081ab069d">00194</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#ac6710eab95964004b469695081ab069d">getPhone</a>($c) {
<a name="l00195"></a>00195       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = <span class="stringliteral">&quot;SELECT phone FROM contact</span>
<a name="l00196"></a>00196 <span class="stringliteral">        WHERE contactID=&#39;$c&#39;&quot;</span>;
<a name="l00197"></a>00197       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00198"></a>00198       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00199"></a>00199       mysql_close();
<a name="l00200"></a>00200           
<a name="l00201"></a>00201           <span class="comment">//If result is false, display error</span>
<a name="l00202"></a>00202       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00203"></a>00203          echo mysql_error();
<a name="l00204"></a>00204          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00205"></a>00205       }
<a name="l00206"></a>00206       <span class="comment">//Query was successful.</span>
<a name="l00207"></a>00207       <span class="keywordflow">return</span> <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>;
<a name="l00208"></a>00208    }
<a name="l00209"></a>00209 
<a name="l00215"></a><a class="code" href="classdb_contact.html#abde0ab59f3a2e54ff7acc3d342257cdb">00215</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#abde0ab59f3a2e54ff7acc3d342257cdb">getExt</a>($c) {
<a name="l00216"></a>00216       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = <span class="stringliteral">&quot;SELECT ext FROM contact</span>
<a name="l00217"></a>00217 <span class="stringliteral">        WHERE contactID=&#39;$c&#39;&quot;</span>;
<a name="l00218"></a>00218       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00219"></a>00219       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00220"></a>00220       mysql_close();
<a name="l00221"></a>00221           
<a name="l00222"></a>00222           <span class="comment">//If result is false, display error</span>
<a name="l00223"></a>00223       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00224"></a>00224          echo mysql_error();
<a name="l00225"></a>00225          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00226"></a>00226       }
<a name="l00227"></a>00227       <span class="comment">//Query was successful.</span>
<a name="l00228"></a>00228       <span class="keywordflow">return</span> <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>;
<a name="l00229"></a>00229    }
<a name="l00230"></a>00230 
<a name="l00236"></a><a class="code" href="classdb_contact.html#a1ab13313614b8a37d25b1509c76ecefb">00236</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#a1ab13313614b8a37d25b1509c76ecefb">getFax</a>($c) {
<a name="l00237"></a>00237       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = <span class="stringliteral">&quot;SELECT fax FROM contact</span>
<a name="l00238"></a>00238 <span class="stringliteral">        WHERE contactID=&#39;$c&#39;&quot;</span>;
<a name="l00239"></a>00239       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00240"></a>00240       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00241"></a>00241       mysql_close();
<a name="l00242"></a>00242           
<a name="l00243"></a>00243           <span class="comment">//If result is false, display error</span>
<a name="l00244"></a>00244       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00245"></a>00245          echo mysql_error();
<a name="l00246"></a>00246          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00247"></a>00247       }
<a name="l00248"></a>00248       <span class="comment">//Query was successful.</span>
<a name="l00249"></a>00249       <span class="keywordflow">return</span> <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>;
<a name="l00250"></a>00250    }
<a name="l00251"></a>00251 
<a name="l00258"></a><a class="code" href="classdb_contact.html#a783f80405bcd83a52a7d050aefa54969">00258</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#a783f80405bcd83a52a7d050aefa54969">updateContact</a>($c) {
<a name="l00259"></a>00259       <span class="keywordflow">if</span> (!($c instanceof <a class="code" href="class_contact.html">Contact</a>)) {
<a name="l00260"></a>00260          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00261"></a>00261       }
<a name="l00262"></a>00262       $contactID = $c-&gt;getContactID();
<a name="l00263"></a>00263       $organizationID = $c-&gt;getOrganizationID();
<a name="l00264"></a>00264       $fname = $c-&gt;getFName();
<a name="l00265"></a>00265       $lname = $c-&gt;getLName();
<a name="l00266"></a>00266       <a class="code" href="old_2internship-request_8php.html#ad634f418b20382e2802f80532d76d3cd">$email</a> = $c-&gt;getEmail();
<a name="l00267"></a>00267       <a class="code" href="old_2internship-request_8php.html#afca642079313f7c6c3f8d4368f779882">$phone</a> = $c-&gt;getPhone();
<a name="l00268"></a>00268       <a class="code" href="old_2internship-request_8php.html#ade30ae71930839daaf6f83bd19081493">$ext</a> = $c-&gt;getExt();
<a name="l00269"></a>00269       <a class="code" href="old_2internship-request_8php.html#a1d4b86a559828926b1d8abbd581932ce">$fax</a> = $c-&gt;getFax();
<a name="l00270"></a>00270 
<a name="l00271"></a>00271       <span class="keywordflow">if</span> ($organizationID != <span class="stringliteral">&#39;&#39;</span>) {
<a name="l00272"></a>00272          <span class="keywordflow">if</span> (!mysql_query(<span class="stringliteral">&quot;UPDATE contact SET organizationID=&#39;$organizationID&#39;</span>
<a name="l00273"></a>00273 <span class="stringliteral">                    WHERE contactID=$contactID&quot;</span>))
<a name="l00274"></a>00274             die(<span class="stringliteral">&quot;Could not update contact with ID = $contactID&quot;</span>);
<a name="l00275"></a>00275       }
<a name="l00276"></a>00276       <span class="keywordflow">if</span> ($fname != <span class="stringliteral">&#39;&#39;</span>) {
<a name="l00277"></a>00277          <span class="keywordflow">if</span> (!mysql_query(<span class="stringliteral">&quot;UPDATE contact SET fname=&#39;$fname&#39; WHERE</span>
<a name="l00278"></a>00278 <span class="stringliteral">                    contactID=$contactID&quot;</span>))
<a name="l00279"></a>00279             die(<span class="stringliteral">&quot;Could not update contact with ID = $contactID&quot;</span>);
<a name="l00280"></a>00280       }
<a name="l00281"></a>00281       <span class="keywordflow">if</span> ($lname != <span class="stringliteral">&#39;&#39;</span>) {
<a name="l00282"></a>00282          <span class="keywordflow">if</span> (!mysql_query(<span class="stringliteral">&quot;UPDATE contact SET lname=&#39;$lname&#39; WHERE</span>
<a name="l00283"></a>00283 <span class="stringliteral">                    contactID=$contactID&quot;</span>))
<a name="l00284"></a>00284             die(<span class="stringliteral">&quot;could not update contact with ID = $contactID&quot;</span>);
<a name="l00285"></a>00285       }
<a name="l00286"></a>00286       <span class="keywordflow">if</span> (<a class="code" href="old_2internship-request_8php.html#ad634f418b20382e2802f80532d76d3cd">$email</a> != <span class="stringliteral">&#39;&#39;</span>) {
<a name="l00287"></a>00287          <span class="keywordflow">if</span> (!mysql_query(<span class="stringliteral">&quot;UPDATE contact SET email=&#39;$email&#39; WHERE</span>
<a name="l00288"></a>00288 <span class="stringliteral">                    contactID=$contactID&quot;</span>))
<a name="l00289"></a>00289             die(<span class="stringliteral">&quot;could not update contact with ID = $contactID&quot;</span>);
<a name="l00290"></a>00290       }
<a name="l00291"></a>00291       <span class="keywordflow">if</span> (<a class="code" href="old_2internship-request_8php.html#afca642079313f7c6c3f8d4368f779882">$phone</a> != <span class="stringliteral">&#39;&#39;</span>) {
<a name="l00292"></a>00292          <span class="keywordflow">if</span> (!mysql_query(<span class="stringliteral">&quot;UPDATE contact SET phone=&#39;$phone&#39; WHERE</span>
<a name="l00293"></a>00293 <span class="stringliteral">                    contactID=$contactID&quot;</span>))
<a name="l00294"></a>00294             die(<span class="stringliteral">&quot;could not update contact with ID = $contactID&quot;</span>);
<a name="l00295"></a>00295       }
<a name="l00296"></a>00296       <span class="keywordflow">if</span> (<a class="code" href="old_2internship-request_8php.html#ade30ae71930839daaf6f83bd19081493">$ext</a> != <span class="stringliteral">&#39;&#39;</span>) {
<a name="l00297"></a>00297          <span class="keywordflow">if</span> (!mysql_query(<span class="stringliteral">&quot;UPDATE contact SET ext=&#39;$ext&#39; WHERE</span>
<a name="l00298"></a>00298 <span class="stringliteral">                    contactID=$contactID&quot;</span>))
<a name="l00299"></a>00299             die(<span class="stringliteral">&quot;could not update contact with ID = $contactID&quot;</span>);
<a name="l00300"></a>00300       }
<a name="l00301"></a>00301       <span class="keywordflow">if</span> (<a class="code" href="old_2internship-request_8php.html#a1d4b86a559828926b1d8abbd581932ce">$fax</a> != <span class="stringliteral">&#39;&#39;</span>) {
<a name="l00302"></a>00302          <span class="keywordflow">if</span> (!mysql_query(<span class="stringliteral">&quot;UPDATE contact SET fax=&#39;$fax&#39; WHERE</span>
<a name="l00303"></a>00303 <span class="stringliteral">                    contactID=$contactID&quot;</span>))
<a name="l00304"></a>00304             die(<span class="stringliteral">&quot;could not update contact with ID = $contactID&quot;</span>);
<a name="l00305"></a>00305       }
<a name="l00306"></a>00306       <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00307"></a>00307    }
<a name="l00308"></a>00308 
<a name="l00314"></a><a class="code" href="classdb_contact.html#a8d439627608a4c5850b54067b92c4021">00314</a>    <span class="keyword">static</span> <span class="keyword">function</span> <a class="code" href="classdb_contact.html#a8d439627608a4c5850b54067b92c4021">addContact</a>($c, &amp;$id = null) {
<a name="l00315"></a>00315       <span class="keywordflow">if</span> (!$c instanceof <a class="code" href="class_contact.html">Contact</a>) {
<a name="l00316"></a>00316          echo (<span class="stringliteral">&quot;Invalid arguement insertInto ( ) function&lt;br /&gt;&quot;</span>);
<a name="l00317"></a>00317          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00318"></a>00318       }
<a name="l00319"></a>00319       <span class="comment">//Compose the INSERT INTO query string. Primary key value is missing.</span>
<a name="l00320"></a>00320       <span class="comment">//Database server automatically generates a unique ID for the primary</span>
<a name="l00321"></a>00321       <span class="comment">//key.</span>
<a name="l00322"></a>00322       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = sprintf(<span class="stringliteral">&quot;INSERT INTO contact VALUES(null, %d, &#39;%s&#39;, &#39;%s&#39;,</span>
<a name="l00323"></a>00323 <span class="stringliteral">        &#39;%s&#39;, &#39;%s&#39;, &#39;%s&#39;, &#39;%s&#39;)&quot;</span>, $c-&gt;getOrganizationID(), $c-&gt;getFname(), $c-&gt;getLname(), $c-&gt;getEmail(), $c-&gt;getPhone(), $c-&gt;getExt(), $c-&gt;getFax()
<a name="l00324"></a>00324       );
<a name="l00325"></a>00325       <span class="comment">// printf(&quot;-&gt;Query: %s&lt;br /&gt;&quot;, $query);</span>
<a name="l00326"></a>00326       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00327"></a>00327       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00328"></a>00328       $id = mysql_insert_id();
<a name="l00329"></a>00329       mysql_close();
<a name="l00330"></a>00330       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00331"></a>00331          echo mysql_error();
<a name="l00332"></a>00332          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00333"></a>00333       }
<a name="l00334"></a>00334       <span class="comment">//query was successful.</span>
<a name="l00335"></a>00335       <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00336"></a>00336    }
<a name="l00337"></a>00337 
<a name="l00343"></a><a class="code" href="classdb_contact.html#a32503dde9546c776ebabe3b01731c2dd">00343</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#a32503dde9546c776ebabe3b01731c2dd">checkID</a>($c) {
<a name="l00344"></a>00344       <span class="keywordflow">if</span> (!($c instanceof <a class="code" href="class_contact.html">Contact</a>)) {
<a name="l00345"></a>00345          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00346"></a>00346       }
<a name="l00347"></a>00347       $contactID = $c-&gt;getContactID();
<a name="l00348"></a>00348       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00349"></a>00349       <span class="keywordflow">if</span> (mysql_num_rows(mysql_query(<span class="stringliteral">&quot;SELECT * FROM contact WHERE</span>
<a name="l00350"></a>00350 <span class="stringliteral">                contactID=$contactID&quot;</span>)) == <span class="keyword">false</span>) {
<a name="l00351"></a>00351          mysql_close();
<a name="l00352"></a>00352 <span class="comment">//nothing existsmysql_num_rows</span>
<a name="l00353"></a>00353          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00354"></a>00354       } <span class="keywordflow">else</span> {
<a name="l00355"></a>00355          <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00356"></a>00356       }
<a name="l00357"></a>00357    }
<a name="l00358"></a>00358 
<a name="l00365"></a><a class="code" href="classdb_contact.html#a8052600fdae6d5e22990f20f50c917b2">00365</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#a8052600fdae6d5e22990f20f50c917b2">getContact</a>($contactID) {
<a name="l00366"></a>00366       $c = <span class="keyword">new</span> <a class="code" href="class_contact.html">Contact</a>();
<a name="l00367"></a>00367       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<span class="stringliteral">&quot;SELECT * FROM contact WHERE contactID=</span>
<a name="l00368"></a>00368 <span class="stringliteral">                $contactID&quot;</span>);
<a name="l00369"></a>00369       <span class="keywordflow">if</span> (!<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>) {
<a name="l00370"></a>00370          <span class="keywordflow">return</span> <span class="keyword">false</span>; <span class="comment">//id does not exist</span>
<a name="l00371"></a>00371       } <span class="keywordflow">else</span> {
<a name="l00372"></a>00372          $row = mysql_fetch_assoc(<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>);
<a name="l00373"></a>00373          $c-&gt;setContactID($contactID);
<a name="l00374"></a>00374          $c-&gt;setOrganizationID($row[<span class="stringliteral">&#39;organizationID&#39;</span>]);
<a name="l00375"></a>00375          $c-&gt;setFname($row[<span class="stringliteral">&#39;fname&#39;</span>]);
<a name="l00376"></a>00376          $c-&gt;setLname($row[<span class="stringliteral">&#39;lname&#39;</span>]);
<a name="l00377"></a>00377          $c-&gt;setEmail($row[<span class="stringliteral">&#39;email&#39;</span>]);
<a name="l00378"></a>00378          $c-&gt;setPhone($row[<span class="stringliteral">&#39;phone&#39;</span>]);
<a name="l00379"></a>00379          $c-&gt;setExt($row[<span class="stringliteral">&#39;ext&#39;</span>]);
<a name="l00380"></a>00380          $c-&gt;setFax($row[<span class="stringliteral">&#39;fax&#39;</span>]);
<a name="l00381"></a>00381          <span class="keywordflow">return</span> $c;
<a name="l00382"></a>00382       }
<a name="l00383"></a>00383    }
<a name="l00384"></a>00384 
<a name="l00390"></a><a class="code" href="classdb_contact.html#a1dc772ac7653b9139434f430470b6ed4">00390</a>    <span class="keyword">function</span> <a class="code" href="classdb_contact.html#a1dc772ac7653b9139434f430470b6ed4">deleteContact</a>($c) {
<a name="l00391"></a>00391       <span class="keywordflow">if</span> (!$c instanceof contact) {
<a name="l00392"></a>00392          echo (<span class="stringliteral">&quot;Invalid argument deleteFrom( ) function&lt;br /&gt;&quot;</span>);
<a name="l00393"></a>00393          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00394"></a>00394       }
<a name="l00395"></a>00395 
<a name="l00396"></a>00396       <span class="comment">//Compose the DELETE FROM query string.</span>
<a name="l00397"></a>00397       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = sprintf(<span class="stringliteral">&quot;DELETE FROM contact WHERE contactID = %d&quot;</span>, $c-&gt;getContactID()
<a name="l00398"></a>00398       );
<a name="l00399"></a>00399       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00400"></a>00400       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00401"></a>00401       mysql_close();
<a name="l00402"></a>00402       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00403"></a>00403          echo mysql_error();
<a name="l00404"></a>00404          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00405"></a>00405       }
<a name="l00406"></a>00406 
<a name="l00407"></a>00407       <span class="comment">//Query was successful.</span>
<a name="l00408"></a>00408       <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00409"></a>00409    }
<a name="l00410"></a>00410 
<a name="l00416"></a><a class="code" href="classdb_contact.html#aaaca33ac319178544c7cc9df0d9f1578">00416</a>    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">function</span> <a class="code" href="classdb_contact.html#aaaca33ac319178544c7cc9df0d9f1578">getAllByID</a>($id, &amp;$output) {
<a name="l00417"></a>00417       <a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a> = sprintf(<span class="stringliteral">&quot;SELECT organizationID, fname, lname, email, phone, </span>
<a name="l00418"></a>00418 <span class="stringliteral">            ext, fax  FROM contact WHERE contactID=%d&quot;</span>, $id);
<a name="l00419"></a>00419       <span class="comment">//printf(&quot;-&gt;Query: %s&lt;br /&gt;&quot;, $query);</span>
<a name="l00420"></a>00420       <a class="code" href="db-control_2inc_2functions_8php.html#aca07cf60afd49a5a5b583459f5423045">connectToDatabase</a>();
<a name="l00421"></a>00421       <a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> = mysql_query(<a class="code" href="internship__list__dateadded_8php.html#af59a5f7cd609e592c41dc3643efd3c98">$query</a>);
<a name="l00422"></a>00422       mysql_close();
<a name="l00423"></a>00423 
<a name="l00424"></a>00424       <span class="keywordflow">if</span> (<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a> == <span class="keyword">false</span>) {
<a name="l00425"></a>00425          $output = sprintf(<span class="stringliteral">&quot;%s&quot;</span>, mysql_error());
<a name="l00426"></a>00426          <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00427"></a>00427       }
<a name="l00428"></a>00428       <span class="comment">//process result and print out warning or attribute values</span>
<a name="l00429"></a>00429       <span class="keywordflow">return</span> dbContact::checkForOneInstance(<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>, $id, $output);
<a name="l00430"></a>00430    }
<a name="l00431"></a>00431 
<a name="l00435"></a>00435    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">function</span> checkForOneInstance(<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>, $id, &amp;$output) {
<a name="l00436"></a>00436       <span class="comment">//Local variables are initialized</span>
<a name="l00437"></a>00437       $errorStatus = <span class="keyword">false</span>;
<a name="l00438"></a>00438 
<a name="l00439"></a>00439       $howMany = mysql_num_rows(<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>);
<a name="l00440"></a>00440       <span class="comment">//printf(&quot;--&gt;Found %d instance(s) for donorID=%d.&lt;br /&gt;, $howMany, $id);</span>
<a name="l00441"></a>00441       <span class="keywordflow">switch</span> ($howMany) {
<a name="l00442"></a>00442          <span class="keywordflow">case</span> 0:
<a name="l00443"></a>00443             $output = sprintf(<span class="stringliteral">&quot;No Contact instance with ID=%d was found.&quot;</span>, $id);
<a name="l00444"></a>00444             $errorStatus = <span class="keyword">true</span>;
<a name="l00445"></a>00445             <span class="keywordflow">break</span>;
<a name="l00446"></a>00446          <span class="keywordflow">case</span> 1:
<a name="l00447"></a>00447             <span class="comment">//mysql_fetch() DOES NOT return primary key values</span>
<a name="l00448"></a>00448             $output = mysql_fetch_assoc(<a class="code" href="admin_2internship__list_8php.html#a112ef069ddc0454086e3d1e6d8d55d07">$result</a>);
<a name="l00449"></a>00449             $errorStatus = <span class="keyword">false</span>;
<a name="l00450"></a>00450             <span class="keywordflow">break</span>;
<a name="l00451"></a>00451          <span class="keywordflow">default</span>:
<a name="l00452"></a>00452             $output = sprintf(<span class="stringliteral">&quot;There are multiple Contact instances with</span>
<a name="l00453"></a>00453 <span class="stringliteral">                                   ID=%d.&quot;</span>, $id);
<a name="l00454"></a>00454             $errorStatus = <span class="keyword">true</span>;
<a name="l00455"></a>00455             <span class="keywordflow">break</span>;
<a name="l00456"></a>00456       }
<a name="l00457"></a>00457       <span class="keywordflow">return</span> $errorStatus;
<a name="l00458"></a>00458    }
<a name="l00459"></a>00459 
<a name="l00460"></a>00460 }
<a name="l00461"></a>00461 
<a name="l00462"></a>00462 ?&gt;
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 29 2011 18:18:54 for i2c by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
